export default {
	state: {
		webset:{
			zhuang:[]
		},
		check_auth:0
	},
	getters: {
	},
	mutations: {
		set(state, webset) {
			state.webset = webset
			console.log(state)
		}
         

	},
	actions: {
		// 修改地址
	  	doset(context,$u) {
			 return new Promise((resolve, reject) => {
				 $u.post('index.php?class=base&act=set', {}).then(res => {
				 	context.commit('set', res.data)
					console.log("在set.js页")
					resolve(res.data)
					
				 });
			 })
			
		}
	},
}
